Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename sendUserAttributeVerificationCode #3759

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

Jordan-Nelson
Copy link
Member

@Jordan-Nelson Jordan-Nelson commented Sep 18, 2023

Issue #, if available: #3756

Description of changes:

  • Introduce sendUserAttributeVerificationCode and associated classes in place of resendUserAttributeConfirmationCode
  • Deprecate resendUserAttributeConfirmationCode and associated classes
  • Update inline documentation

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Jordan-Nelson Jordan-Nelson marked this pull request as ready for review September 19, 2023 16:18
@Jordan-Nelson Jordan-Nelson requested a review from a team as a code owner September 19, 2023 16:18
);

@Deprecated('Use sendUserAttributeVerificationCode.')
Future<SendUserAttributeVerificationCodeResult>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the types the same for this method to avoid breaking anyone using them

required AuthUserAttributeKey userAttributeKey,
SendUserAttributeVerificationCodeOptions? options,
}) {
throw UnimplementedError(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep this non-breaking can we have the default impl call resend?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would this change be breaking? Maybe I am missing something.

}

@Deprecated(_deprecatedMessage)
// ignore: public_member_api_docs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we macro the docs?

}

@Deprecated('Use CognitoSendUserAttributeVerificationCodePluginOptions')
// ignore: public_member_api_docs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we macro the docs?

Equartey
Equartey previously approved these changes Sep 20, 2023
@Jordan-Nelson Jordan-Nelson force-pushed the feat/rename-sendUserAttributeVerificationCode branch from 629019d to 74b749c Compare September 21, 2023 16:02
@Jordan-Nelson Jordan-Nelson merged commit 5efee22 into main Oct 2, 2023
101 of 104 checks passed
@Jordan-Nelson Jordan-Nelson deleted the feat/rename-sendUserAttributeVerificationCode branch October 2, 2023 17:53
Equartey pushed a commit that referenced this pull request Oct 26, 2023
* feat: rename sendUserAttributeVerificationCode

* fix: include deprecated category API

* chore: add test, docs updates
Equartey added a commit that referenced this pull request Oct 26, 2023
### Features
- feat: rename sendUserAttributeVerificationCode ([#3759](#3759))

### Fixes
- fix(aft): Small fixes ([#3838](#3838))
- fix(analytics): allow nullable userProfile
- fix(analytics): event client flush events to do not discard events from cache on auth exception ([#3999](#3999))
- fix(auth): use loadCredentials to check login state
- fix(authenticator): Beta channel fixes ([#3835](#3835))
- fix(authenticator): fix validate before trim bug ([#3809](#3809))
- fix(authenticator): use getCurrentUser to check sign in state
- fix(pub): ignore templates folder during analysis ([#4009](#4009))
- fix(smithy): defines Output type to fix beta tests ([#3963](#3963))
- fix: catch and log updateEndpoint error during configure ([#3985](#3985))
- fix: remove exception during token timeout ([#3939](#3939))

### Breaking Changes
- fix(smithy_aws)!: do not sign optional requests

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Oct 26, 2023
### Features
- feat: rename sendUserAttributeVerificationCode ([#3759](#3759))

### Fixes
- fix(aft): Small fixes ([#3838](#3838))
- fix(analytics): allow nullable userProfile
- fix(analytics): event client flush events to do not discard events from cache on auth exception ([#3999](#3999))
- fix(auth): use loadCredentials to check login state
- fix(authenticator): Beta channel fixes ([#3835](#3835))
- fix(authenticator): fix validate before trim bug ([#3809](#3809))
- fix(authenticator): use getCurrentUser to check sign in state
- fix(pub): ignore templates folder during analysis ([#4009](#4009))
- fix(smithy): defines Output type to fix beta tests ([#3963](#3963))
- fix: catch and log updateEndpoint error during configure ([#3985](#3985))
- fix: remove exception during token timeout ([#3939](#3939))

### Breaking Changes
- fix(smithy_aws)!: do not sign optional requests

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey pushed a commit that referenced this pull request Oct 30, 2023
* feat: rename sendUserAttributeVerificationCode

* fix: include deprecated category API

* chore: add test, docs updates
Equartey added a commit that referenced this pull request Oct 30, 2023
### Features
- feat: rename sendUserAttributeVerificationCode ([#3759](#3759))

### Fixes
- fix(aft): Small fixes ([#3838](#3838))
- fix(analytics): allow nullable userProfile
- fix(analytics): event client flush events to do not discard events from cache on auth exception ([#3999](#3999))
- fix(auth): use loadCredentials to check login state
- fix(authenticator): Beta channel fixes ([#3835](#3835))
- fix(authenticator): fix validate before trim bug ([#3809](#3809))
- fix(authenticator): use getCurrentUser to check sign in state
- fix(pub): ignore templates folder during analysis ([#4009](#4009))
- fix(smithy): defines Output type to fix beta tests ([#3963](#3963))
- fix: catch and log updateEndpoint error during configure ([#3985](#3985))
- fix: remove exception during token timeout ([#3939](#3939))

### Breaking Changes
- fix(smithy_aws)!: do not sign optional requests

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Oct 30, 2023
- feat: rename sendUserAttributeVerificationCode ([#3759](#3759))

- fix(aft): Small fixes ([#3838](#3838))
- fix(analytics): allow nullable userProfile
- fix(analytics): event client flush events to do not discard events from cache on auth exception ([#3999](#3999))
- fix(auth): use loadCredentials to check login state
- fix(authenticator): Beta channel fixes ([#3835](#3835))
- fix(authenticator): fix validate before trim bug ([#3809](#3809))
- fix(authenticator): use getCurrentUser to check sign in state
- fix(pub): ignore templates folder during analysis ([#4009](#4009))
- fix(smithy): defines Output type to fix beta tests ([#3963](#3963))
- fix: catch and log updateEndpoint error during configure ([#3985](#3985))
- fix: remove exception during token timeout ([#3939](#3939))

- fix(smithy_aws)!: do not sign optional requests

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Equartey added a commit that referenced this pull request Nov 6, 2023
* chore(version): Bump version

- feat: rename sendUserAttributeVerificationCode ([#3759](#3759))

- fix(aft): Small fixes ([#3838](#3838))
- fix(analytics): allow nullable userProfile
- fix(analytics): event client flush events to do not discard events from cache on auth exception ([#3999](#3999))
- fix(auth): use loadCredentials to check login state
- fix(authenticator): Beta channel fixes ([#3835](#3835))
- fix(authenticator): fix validate before trim bug ([#3809](#3809))
- fix(authenticator): use getCurrentUser to check sign in state
- fix(pub): ignore templates folder during analysis ([#4009](#4009))
- fix(smithy): defines Output type to fix beta tests ([#3963](#3963))
- fix: catch and log updateEndpoint error during configure ([#3985](#3985))
- fix: remove exception during token timeout ([#3939](#3939))

- fix(smithy_aws)!: do not sign optional requests

Updated-Components: amplify_lints, Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee

* fix: slide smithy_codegen window

* fix: added drop dep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants